<!DOCTYPE html>
<html lang="en">
	<head>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title><?=$adminTitle?> - <?=ADMIN_SYS_NAME?></title>

		<link rel="shortcut icon" href="<?=$staticAdminUrl?>assets/images/favicon.jpg">

		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/font-awesome/4.7.0/css/font-awesome.min.css" />
		<!-- page specific plugin styles -->
		<!-- text fonts -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/fonts.googleapis.com.css" />
		<!-- 单选下拉控件 -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/chosen.min.css" />
		<!-- ace styles -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
		<!--[if lte IE 9]>
			<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
		<![endif]-->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/ace-rtl.min.css" />
		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/ace-ie.min.css" />
		<![endif]-->
		<!-- inline styles related to this page -->
		<!-- ace settings handler -->
		<script src="<?=$staticAdminUrl?>assets/js/ace-extra.min.js"></script>

		<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

		<!--[if lte IE 8]>
		<script src="<?=$staticAdminUrl?>assets/js/html5shiv.min.js"></script>
		<script src="<?=$staticAdminUrl?>assets/js/respond.min.js"></script>
		<![endif]-->
		<!-- 自定义css -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/net.css?version=<?= VERSION ?>"></link>
		<!-- 引入toastr.css -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/toastr/toastr.min.css">
		<!-- webuploader -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/webuploader/webuploader.css" />
		<!-- colorbox -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/colorbox.min.css" />
		<!-- 日期时间控件 -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/bootstrap-datetimepicker.min.css" />
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/bootstrap-datepicker3.min.css" />
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/bootstrap-timepicker.min.css" />
		<!-- jquery UI -->
		<link rel="stylesheet" href="<?=$staticAdminUrl?>assets/css/jquery-ui.custom.min.css" />
		<!-- 手机端能显示菜单 -->
		<!-- 电脑端低于991像素能显示菜单 -->
		<style>
	   		@media screen and (max-width: 420px) {
				/* 右上角头像    */
				.navbar:not(.navbar-collapse) .navbar-header {
					float: left !important;
				}
				/* 标题，比如'班牌管理','学生管理' */
				.page-header h1 {
					font-size: 1.3rem;
				}
				/* 表格显示条数字体 */
				.dataTables_info,.dataTables_wrapper label {
					font-size: 1.2rem;
				}
				.navbar-brand small {
					font-size: 60% !important;
				}
				/* 表格底部页码 */
				#dynamic-table_wrapper .bottom .col-xs-3 {
					width: 100%;
					text-align: center;
				}
				#dynamic-table_wrapper .bottom .col-xs-3:nth-child(1) {
					margin-bottom: 5px;
				}
				#dynamic-table_paginate {
					font-size: 11px;
				}
				.dataTables_filter, .dataTables_paginate {
					text-align: center;
				}
				.dataTables_paginate .pagination {
					margin: 0;
				}
				#dynamic-table_length [name=dynamic-table_length] {
					display: inline-block;
				}
				/* 内容筛选 */
				h4 {
					font-size: 16px !important;
				}
				.input-search {
					width: 70%;
				}
				.keyword-search-div, .keyword-search-label {
					font-size: 12px !important;
				}
				/* 表格字体 */
				.table, .table .label {
					font-size: 11px;
					margin-right: 0px;
				}
				/* .table tr th:nth-child(4), .table tr td:nth-child(4) {
					display: none;
				} */
				/* 搜索日期段 */
				.date-input {
					width: 43%;
					padding-left: 0px !important;
					text-align: center;
					font-size: 13px !important;
				}
				.outer-time-picker .fa-calendar {
					display: none;
				}
				.query-date {
					display: block;
				}
				/* 底部版权 @2018-2019 */
				.bigger-120 {
					font-size: 100%!important;
				}
				/* 弹窗 */
				.modal-dialog form {
					margin-left:20px;
				}
				.modal-dialog form .form-group .col-sm-6{
					width: 80%;
				}
				.modal-dialog form .form-group .outer-hour-input .hour-input {
					width: 40%;
				}
			}

			
			@media only screen and (min-width: 420px) and (max-width: 991px) {
				.sidebar.responsive {
					max-height: 900px !important;
					transform: none !important;
					-webkit-transform: none !important;
				}
				/* 设置滚动条 */
				.sidebar.responsive + .main-content {
					margin-left: 180px !important;
					overflow: scroll;
				}
			}
		</style>
	</head>

	<body class="no-skin">
		<div id="navbar" class="navbar navbar-default ace-save-state">
			<div class="navbar-container ace-save-state" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="javascript:;" class="navbar-brand">
						<?php if($userType == USER_TYPE_SUPER_ADMIN): ?>
							<small>
								<i class="fa fa-leaf"></i> <?=ADMIN_SYS_NAME?>
							</small>
						<?php else: ?>
							<small>
								<i class="fa fa-mortar-board"></i> <?=$rmxSchool['school_name']?> - <?=$campusInfo['campus_name']?>
							</small>
						<?php endif; ?>
					</a>
				</div>

				<?php if(empty($this->session->intensiveModule)): ?>
					<div class="navbar-buttons navbar-header pull-right" role="navigation">
						<ul class="nav ace-nav">
							<li class="light-blue dropdown-modal">
								<a data-toggle="dropdown" href="#" class="dropdown-toggle">
									<img class="nav-user-photo" src="<?= $rmxUser['headimgurl'] ?>" />
									<span class="user-info" style="overflow:visible;">
										<small>欢迎登陆,</small>
										<?=$rmxUser['username']?>
									</span>
									<i class="ace-icon fa fa-caret-down"></i>
								</a>
								<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
									<?php if(isset($campusList)): ?>
										<?php foreach($campusList as $campus): ?>
											<li>
												<a href="<?=admin_url('home/select_campus/'. $campus['id'])?>" title="切换<?=$campus['campus_name']?>">
													<i class="ace-icon fa fa-flag"></i> <?=$campus['campus_name']?>
												</a>
											</li>
										<?php endforeach; ?>
										<li class="divider"></li>
									<?php endif; ?>
									<li>
										<a href="<?=admin_url('home/password')?>">
											<i class="ace-icon fa fa-asterisk"></i> 修改密码
										</a>
									</li>
									<li>
										<a href="<?=admin_url('home/logout')?>">
											<i class="ace-icon fa fa-power-off"></i> 注销
										</a>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				<?php endif ?>
				
			</div><!-- /.navbar-container -->
		</div>

		<div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
				try{ace.settings.loadState('main-container')}catch(e){}
			</script>

			<div id="sidebar" class="sidebar responsive ace-save-state">
				<script type="text/javascript">
					try{ace.settings.loadState('sidebar')}catch(e){}
				</script>

				<!-- <div class="sidebar-shortcuts" id="sidebar-shortcuts" style="text-align: left;padding-left: 10px">
				</div> -->

				<ul class="nav nav-list">
					<?php if(empty($this->session->intensiveModule)): ?>
						<?php if($rmxUser['user_type'] == USER_TYPE_SUPER_ADMIN): ?>
							<li data-url="admin/index">
								<a href="<?=admin_url('admin/index')?>" class="">
									<i class="menu-icon fa fa-dashboard"></i>
									<span class="menu-text">数据统计分析</span>
								</a>
								<b class="arrow"></b>
							</li>
						<?php else: ?>
							<li data-url="school/index">
								<a href="<?=admin_url('school/index')?>" class="">
									<i class="menu-icon fa fa-dashboard"></i>
									<span class="menu-text">数据统计分析</span>
								</a>
								<b class="arrow"></b>
							</li>
						<?php endif; ?>
					<?php endif ?>	

					<?php foreach($rmxUser['roleMenu'] as $menu): ?>
						<li data-url="<?=$menu['menu_url']?>" class="">
							<a href="<?=$menu['url']?>" class="<?=count($menu['sub']) ? 'dropdown-toggle' : ''; ?>">
								<i class="menu-icon fa fa-<?=$menu['menu_icon']?>"></i>
								<span class="menu-text"><?=$menu['menu_name']?></span>

								<?php if(count($menu['sub'])): ?>
									<!-- 下拉箭头 -->
									<b class="arrow fa fa-angle-down"></b>
								<?php endif; ?>
							</a>
							<b class="arrow"></b>
							<ul class="submenu">
								<?php foreach($menu['sub'] as $subMenu): ?>
									<li data-url="<?=$subMenu['menu_url']?>" class="">
										<a href="<?=$subMenu['url']?>">
											<i class="menu-icon fa fa-caret-right"></i> <?=$subMenu['menu_name']?>
										</a>
										<b class="arrow"></b>
									</li>
								<?php endforeach; ?>
							</ul>
						</li>
					<?php endforeach; ?>

					<?php if(empty($this->session->intensiveModule)): ?>
						<li>
							<a href="javascript:;" class="dropdown-toggle">
								<i class="menu-icon fa fa-user"></i>
								<span class="menu-text">账号管理</span>
									<b class="arrow fa fa-angle-down"></b>
							</a>
							<b class="arrow"></b>
							<ul class="submenu">
								<li data-url="home/password">
									<a href="<?=admin_url('home/password')?>">
										<i class="menu-icon fa fa-caret-right"></i> 修改密码
									</a>
									<b class="arrow"></b>
								</li>
								<li data-url="home/logout">
									<a href="<?=admin_url('home/logout')?>">
										<i class="menu-icon fa fa-caret-right"></i> 注销登录
									</a>
									<b class="arrow"></b>
								</li>
							</ul>
						</li>
					<?php endif ?>

				</ul>
			</div>

			<div class="main-content">
				<div class="main-content-inner">
					<div class="breadcrumbs ace-save-state" id="breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="ace-icon fa fa-home home-icon"></i>
								<a href="javascript:;">后台管理</a>
							</li>
						</ul><!-- /.breadcrumb -->
					</div>
					<div class="page-content">